package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_activity_object")
public class ShopActivityObject extends Model<ShopActivityObject> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private Integer type;
	@TableField("object_id")
	private Long objectId;
	@TableField("activity_id")
	private Long activityId;
	@TableField("attr_element_ids")
	private String attrElementIds;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getObjectId() {
		return objectId;
	}

	public void setObjectId(Long objectId) {
		this.objectId = objectId;
	}

	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}

	public String getAttrElementIds() {
		return attrElementIds;
	}

	public void setAttrElementIds(String attrElementIds) {
		this.attrElementIds = attrElementIds;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopActivityObject{" +
			"id=" + id +
			", type=" + type +
			", objectId=" + objectId +
			", activityId=" + activityId +
			", attrElementIds=" + attrElementIds +
			"}";
	}
}
